﻿using Abp.Application.Features;
using Abp.Domain.Entities;

namespace Abp.MultiTenancy
{
    /// <summary>
    /// Feature setting for a Tenant (<see cref="AbpTenant{TUser}"/>).
    /// 用于一个租户的特性设置（<see cref="AbpTenant{TUser}"/>）。
    /// </summary>
    public class TenantFeatureSetting : FeatureSetting
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="TenantFeatureSetting"/> class.
        /// 初始化 <see cref="TenantFeatureSetting"/> 类的新实例。
        /// </summary>
        public TenantFeatureSetting()
        {
            
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="TenantFeatureSetting"/> class.
        /// 初始化 <see cref="TenantFeatureSetting"/> 类的新实例。
        /// </summary>
        /// <param name="tenantId">
        /// The tenant identifier.
        /// 租户的唯一标识。
        /// </param>
        /// <param name="name">
        /// Feature name.
        /// 特性设置名称。
        /// </param>
        /// <param name="value">
        /// Feature value.
        /// 特性设置值。
        /// </param>
        public TenantFeatureSetting(int tenantId, string name, string value)
            :base(name, value)
        {
            TenantId = tenantId;
        }
    }
}